<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>set goal</title>
</head>
<body>

<h1>What is the thing you most want to do?</h1>
<form method="post" th:object="${goal}">
    <div>
        <label for="name"> your goal:  </label>
        <input type="text" th:field="*{name}" />
        <span th:if="${#fields.hasErrors('name')}"
              th:errors="*{name}"> name error</span>
    </div>
    <div>
        remind time per day: <input type="text" th:field="*{alertTime}" />
    </div>
    <div>
        <input type="submit" value="submit order"/>
    </div>
</form>
</body>
</html>
